#include "mode_scene_config.h"

SCENE_SYS scene_ssp;
u8 scene_senet;//灵敏度

const char scene_senst_save[][SCENE_MODE_NUM]={\
    {},//0 开光
    {"aurora"},//1 极光
    {"camdlelight"},//2 烛光
    {"birthday"}, //3 生日烛光
    {"meteror"}, // 4 流星
    {"rest"},   //5 休息
    {"meditation"},// 6冥想 
    {"flame"}, //7 火焰
    {"business"}, //8 商务
    {"alarm"}, //9 警报
    {"tide"}, //10 潮汐
    {"music"}, //11 电子英语
    {"universe"},//12宇宙
};

const LIGHT_EFFECT_T light_effect_default_config[SCENE_MODE_NUM]={ \
    {},//0空
    {2,50,45,{0x13,0xFF,0x13,0x12,0xFF,0x4F,0x13,0xFF,0x13,0x12,0xFF,0x4F,0x13,0xFF,0x13,0xFF,0xFF,0xFF,0x13,0xFF,0x13,0x12,0xFF,0x4F,0x13,0xFF,0x13,0x12,0xFF,0x4F,0x13,0xFF,0x13,0x12,0xFF,0x4F,0x13,0xFF,0x13,0xFF,0xFF,0xFF,0x13,0xFF,0x13}},//1极光
    {1,20,12,{0xFF,0x00,0x54,0xFF,0x2A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//2烛光晚餐
    {1,20,18,{0xFF,0x0E,0x00,0xFF,0x0E,0x00,0xFF,0x2B,0x01,0xFF,0x2B,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//3生日
    {8,20,15,{0xFF,0x32,0x00,0xFF,0x46,0X18,0xFF,0x5A,0X32,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//4流星
    {1,20,24,{0x00,0x00,0xFF,0x00,0x00,0x00,0xFD,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0xFD,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//5睡觉
    {6,20, 9,{0x61,0x18,0xFF,0xFF,0x3E,0x18,0x18,0x54,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//6冥想
    {2,50,30,{0xFF,0x00,0x00,0xFF,0x1E,0x00,0xFF,0x1E,0x00,0xFF,0x00,0x00,0xFF,0x1E,0x00,0xFF,0x1E,0x00,0xFF,0x00,0x00,0xFF,0x1E,0x00,0xFF,0x2D,0x11,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//7火焰
    {2,50, 9,{0x3E,0xCF,0xE4,0xFF,0xFF,0xFF,0x3E,0xF1,0xE4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//8商务
    {1,60, 3,{0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//9警报
    {4,50,12,{0xFF,0xFF,0xFF,0x00,0xFF,0x00,0x00,0x1E,0xFF,0x00,0x1E,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//10潮汐
    {6,50,12,{0xD8,0x00,0x7B,0xFB,0x00,0x44,0xFE,0x00,0x00,0x2C,0x1C,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//11电子音乐
    {2,50,27,{0xA8,0x00,0xFF,0xA8,0x00,0xFF,0xA8,0x00,0xFF,0x00,0x00,0xFF,0x3F,0x3F,0xFF,0x62,0x0D,0xFF,0x62,0x0D,0xFF,0x21,0x9D,0xFD,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},//12宇宙
};


void set_scene_ssp(u8 num)
{
    scene_ssp.ssp =num;
    LOG_INFO("scene_ssp.ssp %d\n",scene_ssp.ssp);
}

void set_scene_last_ssp(u8 num)
{
    scene_ssp.last_ssp = num;
    LOG_INFO("scene_ssp.last_ssp %d\n",scene_ssp.last_ssp);
}

EM_SCENE_SSP get_scene_ssp()
{
    return scene_ssp.ssp;
}

EM_SCENE_SSP get_scene_last_ssp()
{
    return scene_ssp.last_ssp;
}

/*设置场景模式灵敏度*/
void set_scene_senet(u8 senet)
{
    scene_senet =senet;
}

/*获取场景模式灵敏度*/
u8 get_scene_senet()
{
    return scene_senet;
}


